#-*- coding: utf-8 -*-

from scene import CScene as CCustomScene
from object import *

class CScene(CCustomScene):
	m_SID	=1
	m_Name	="初始化画面"

	def OnCreate(self):
		self.m_AniLoading=CreateAni(1)
		self.ShowHUD()

	def OnEnter(self):
		if hasattr(self,"m_AniLoading"):
			ani=self.m_AniLoading
			del self.m_AniLoading
			ani.m_x=10
			ani.m_y=10
			ani.Play(self.m_HUD,self.ShowMenu)

	def Update(self,dt):
		pass

	def ShowMenu(self):
		oMenu=CreateMenu(1)
		self.m_HUD.add(oMenu)
		